<template>
  <div class="container">
    <mt-header fixed title="维保信息">
      <span slot="left" @click="goback">
        <mt-button>
          <img src="../../assets/fh.png" alt="后退">
        </mt-button>
      </span>
      <span slot="right" @click="add">
        <mt-button>
          <img src="../../assets/tj@1x.png" alt="添加">
        </mt-button>
      </span>
    </mt-header>
    <div class="navbar_box">
      <div class="title">
        <ul>
          <router-link to="/maintenance/wb1" tag="li">已确认</router-link>
          <router-link to="/maintenance/wb2" tag="li">已处理</router-link>
          <router-link to="/maintenance/wb3" tag="li">未接受</router-link>
          <router-link to="/maintenance/wb4" tag="li">已接收</router-link>
        </ul>
      </div>
      <div class="show_content">
        <router-view></router-view>
      </div>
    </div>
    
  </div>
</template>
<script>
export default {
  data() {
    return{
      
    }
  },
  methods: {
    goback() {
      // 点击后退
      this.$router.go(-1);
    },
    add() {
      this.$router.push({ name: "addwb" });
    }
  }
};
</script>
<style lang="scss" scoped>
.container {
  background: #fff;
  height: auto;
  padding-top: 0.6rem;
}
// 右侧加号图标设置
.is-right img {
  width: 100%;
  height: auto;
}
.navbar_box {
  padding: 0.2rem 0.1rem;
  ul {
    padding: 0px;
    margin: 0px;
  }
  .title {
    font-family: "Microsoft YaHei";
    border-radius: 0.05rem;
    border: 1px solid #7f8fc3;
    ul {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      text-align: center;
      li {
        flex: 1;
        list-style: none;
        color: #7f8fc3;
        padding: 0.05rem 0;
        font-size: 12px;
      }
      .router-link-active {
        border: none;
        color: #fff;
        margin-bottom: 0;
        background: #7f8fc3;
      }
    }
  }
}
</style>



<style lang="scss">
// 缩略图
.thumbs {
  padding: 0.1rem 0;
  .my-gallery {
    display: flex;
    flex-wrap: nowrap;
  }
  figure {
    width: 1rem;
    height: 0.7rem;
    margin: 0.1rem;
    margin-left: 0px;
    box-shadow: 0 0 8px #999;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>